home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr50
/
pbc22b.zip
/
PBC$BAS.ZIP
/
NAMECAS2.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-01
|
959b
|
29 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB NameCase00 (St$)
SUB NameCase (St$)
NameCase00 St$
IF RIGHT$(St$, 3) = " Ii" OR RIGHT$(St$, 4) = " Iii" OR RIGHT$(St$, 3) = " Iv" THEN
place% = INSTR(St$, " ")
place% = INSTR(place% + 1, St$, " ")
IF place% THEN
tmp% = LEN(St$)
DO
MID$(St$, tmp%, 1) = UCASE$(MID$(St$, tmp%, 1))
tmp% = tmp% - 1
LOOP UNTIL MID$(St$, tmp%, 1) = " "
END IF
END IF
END SUB
FUNCTION NameCase2$ (St$)
tmp$ = St$
NameCase tmp$
NameCase2$ = tmp$
END FUNCTION